package com.ruoyi.carService.controller;

import com.ruoyi.carService.service.ICarTodayDingdanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author yang
 * @version 1.0
 * @data 2024/9/9 21:44
 */
@RestController
@RequestMapping("/dingdanToday")
public class CarTodayDingdanController {
    @Autowired
    private ICarTodayDingdanService carTodayDingdanService;

    @RequestMapping("/getTodayDingdan")
    public ResponseEntity<Map<String, Object>> getCarTodayDingdan(){
        return ResponseEntity.ok(carTodayDingdanService.getCarTodayDingdan());
    }
}
